package com.hxd.mall.module.school.bean

import com.hxd.mall.network.base.BaseSerializable
import com.hxd.mall.network.base.BaseStatusBean

data class SchoolBean(
    val data: Data
) : BaseStatusBean()

data class Data(
    val articleLayout: ModuleLayout,
    val audioLayout: ModuleLayout,
    val videoLayout: ModuleLayout
) : BaseSerializable()


data class ModuleLayout(
    val enabled: Boolean,
    val no: String,
    val resources: List<ItemResource>,
    val seq: Int,
    val title: String
) : BaseSerializable()

data class ItemResource(
    var content: String? = null,
    val entryUri: String?,
    val ext: ExtBean? = null,
    val no: String? = null,
    val pictUri: String? = null,
    val seq: Int? = null,
    val title: String? = null,
    val type: String? = null
) : BaseSerializable()

class ExtBean : BaseSerializable() {
    var inventoryId: String = ""
    //主题颜色值
    var rgb: String = ""
    var adzondId: String = ""
}
/**
 *新手必看
 */
//data class ArticleLayout(
//    val enabled: Boolean,
//    val no: String,
//    val resources: List<Resource>,
//    val seq: Int,
//    val title: String
//) : BaseSerializable()
//
//data class Resource(
//    val entryUri: String,
//    val ext: String,
//    val no: String,
//    val pictUri: String,
//    val seq: Int,
//    val title: String,
//    val type: String
//) : BaseSerializable()

/**
 *商学院讲堂
 */
//data class AudioLayout(
//    val enabled: Boolean,
//    val no: String,
//    val resources: List<ResourceX>,
//    val seq: Int,
//    val title: String
//) : BaseSerializable()
//
//data class ResourceX(
//    val entryUri: String,
//    val ext: String,
//    val no: String,
//    val pictUri: String,
//    val seq: Int,
//    val title: String,
//    val type: String
//) : BaseSerializable()

/**
 *销售经验
 */
//data class VideoLayout(
//    val enabled: Boolean,
//    val no: String,
//    val resources: List<ResourceXX>,
//    val seq: Int,
//    val title: String
//) : BaseSerializable()
//
//data class ResourceXX(
//    val entryUri: String,
//    val ext: String,
//    val no: String,
//    val pictUri: String,
//    val seq: Int,
//    val title: String,
//    val type: String
//) : BaseSerializable()